
function addProgress() {
    var data = {
        scheduleName:$("#scheduleName").val(),
        preparationStage:$("#preparationStage").val(),
        baseStage:$("#baseStage").val(),
        subjectStage:$("#subjectStage").val(),
        decorateStage:$("#decorateStage").val(),
        greenStage:$("#greenStage").val(),
    };
    $.ajax({
        url :   "http://localhost:8080/userCore/schedule/addschedule",
        type:   "post",
        data:JSON.stringify(data),
        beforeSend: function(request) {
            request.setRequestHeader("token", "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMSIsImlhdCI6MTUzMzYyODkxNywic3ViIjoiMTEs5p2O6ICB5piOLDAsMiwxIiwiZXhwIjoxNTMzNjM2MTE3fQ.se6IxhGn0Q156YGGcJ8JellW837T8SjUKnHy5jJojk8");
        },
        contentType:"application/json;",
        success:function(data) {
            alert(data.msg);
        }
    });
}


function queryProgressDetail(id) {
    $.ajax({
        url :   "http://localhost:8080/userCore/schedule/getschedule",
        type:   "post",
        data:JSON.stringify(data),
        beforeSend: function(request) {
            request.setRequestHeader("token", "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMSIsImlhdCI6MTUzMzYyODkxNywic3ViIjoiMTEs5p2O6ICB5piOLDAsMiwxIiwiZXhwIjoxNTMzNjM2MTE3fQ.se6IxhGn0Q156YGGcJ8JellW837T8SjUKnHy5jJojk8");
        },
        contentType:"application/json;",
        success:function(data) {
            alert(data.msg);
        }
    });
}